package com.jl.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jl.model.ModelComponent;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * device_part - component表(多对多) Mapper 接口
 * </p>
 *
 * @author JiangJian
 * @since 2019-04-15
 */
public interface ModelComponentMapper extends BaseMapper<ModelComponent> {

    /**
     * 批量插入
     * @param modelId 部位d
     * @param components 配件id列表
     * @return
     */
    Integer insertModelComponentList(@Param("modelId") Long modelId, @Param("components") List<Long> components);
    /**
     * 批量删除
     * @param modelId 设备类型id
     * @param components 删除的配件id列表
     * @return
     */
    Integer deleteModelComponentList(@Param("modelId") Long modelId, @Param("components") List<Long> components);

}
